package com.gxa.service;

import com.gxa.domain.dto.CarInsuranceDTO;
import com.gxa.domain.dto.CarManageDTO;
import com.gxa.domain.entity.CarInsurance;
import com.gxa.domain.entity.CarManage;
import com.gxa.domain.vo.CarInsuranceVO;

import java.util.List;

/**
 * User: gxb
 * Date: 2024/07/17  10:20
 * Description:
 * Version: V1.0
 */
public interface CarInsuranceService {
    void insertCarInsurance(CarInsurance carInsurance);


    //根据id查询一个保险
    CarInsuranceVO findCarInsuranceById(Long id);

    //如果返回的结果有多条，会自动帮我们封装到List集合中
    //查询所有车辆保险
    List<CarInsurance> findCarInsuranceAll();

    //修改车辆保险
    void updateCarInsurance(CarInsurance carInsurance);


    //根据id删除一个车辆保险
    void deleteCarInsuranceById(Long id);


    //查询页面数据
    List<CarInsurance> findCarInsuranceByWhere(CarInsuranceDTO carInsuranceDTO);
}
